home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / OpenDoc / Headline / Headline README
Encoding:
Text File  |  1995-05-04  |  1.9 KB  |  57 lines  |  [TEXT/ttxt]

  1. Headline
  2.  
  3. A very simple OpenDocâ„¢ DR2 part.
  4. by Jim Matthews
  5. Software Development, Dartmouth College
  6. Copyright (c) 1995, Trustees of Dartmouth College
  7.  
  8. Based on HelloPart (+ Drag & Drop) by Apple Computer (Partmaker 4.0, OpenDoc
  9. DR2 Release).
  10.  
  11. Features
  12.  
  13. * Text display bounded by the part frame (see the TrueType article in develop
  14. 7).
  15. * Font menu.
  16. * Cut/Copy/Paste/Clear to change the text string.
  17. * Receives 'TEXT' drags to change the text string.
  18. * Receives 'TEXT' links to change the text string.
  19. * Multi-level Undo/Redo for all the above commands (see Bugs).
  20.  
  21. Tricks
  22.  
  23. * Hold down Option to turn "Link Info" into "Part Info" (when there's a link).
  24.  
  25. Bugs
  26.  
  27. * Font choice is not saved.
  28. * Undo Cut and Undo Copy do not restore the previous clipboard contents.
  29. * Redo Paste As does not work, instead it prints a message to Macsbug.  The
  30. link spec appears to vanish from the clipboard between the original Paste As
  31. and the Redo Paste As.
  32. * Show Links is not implemented.
  33. * When there's a link the text string can not be changed (except through the
  34. link, or by first explicitly breaking the link).
  35.  
  36. Kludges
  37.  
  38. * An ODFrame * is stored in the undo action data, because the
  39. UndoAction()/RedoAction() methods need one to get the clipboard focus.  There
  40. must be a better way to do that.
  41. * We call frame->SetDroppable() from within the Draw() method, because
  42. otherwise it would never be called for saved parts and drag&drop would only
  43. work with virgin stationery.  That looks like a bug in HelloPart (+ Drag &
  44. Drop).
  45. * An abortive attempt was made at supporting links from Headline to other
  46. parts; it never worked and its code should be ignored.
  47.  
  48. Credits
  49.  
  50. Headline borrows extensively from dumbPart, a DR 1.5 part written by Joe
  51. Francis and Jim Matthews at the 4/8-12/95 Boston OpenDoc Coding Retreat.
  52. DumbPart in turn borrowed from PictPart (Orkis newer newer) from the Nice,
  53. France coding kitchen.
  54.  
  55. E-Mail
  56.  
  57. Jim.Matthews@dartmouth.edu